//
// Created by kongkong on 16/9/25.
// Copyright (c) 2016 Kongkong. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "KKResponseProtocol.h"

@interface KKResponse<__covariant T> : NSObject<KKResponseProtocol>

/** origin response *****************************/
@property (nonatomic,strong,readonly) NSDictionary* originalData;

@property (nonatomic,assign,readonly) ServerReturnCode ret;
@property (nonatomic,strong,readonly) NSString* serverMessage;

@property (nonatomic,assign,readonly) int bizCode;
@property (nonatomic,strong,readonly) NSString* bizMsg;

@property (nonatomic,strong,readonly) id originResult;
/*******************************/

/** 解析 数据 *****************************/
@property (nonatomic,strong,readonly) id result;

@property (nonatomic,strong) NSError *error;
@end
